Skip to content

Conversation

@hdeshev
Copy link
Contributor

@hdeshev hdeshev commented Mar 20, 2017

...instead of loaded. Avoid a brief flash of a blank page on slower devices.

Fixes #620

private _registeredComponents = new Map<string, NativeScriptRenderer>();

public get rootView(): View {
if (!this._rootView) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!this._rootView) {
this._rootView = NativeScriptPlatformRef.rootPage || topmost().currentPage;
}
instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@hdeshev hdeshev force-pushed the hdeshev/init-navigatingto branch from d02cdb7 to 993c8d0 Compare March 21, 2017 10:34
@hdeshev hdeshev merged commit 3e478e9 into master Mar 21, 2017
@hdeshev hdeshev deleted the hdeshev/init-navigatingto branch March 21, 2017 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants